*{
  box-sizing: border-box;
  margin: 0;
}


.hero {
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(#f9f9f9, #d09c4f);
  
  display: flex;
  flex-direction: column;
  overflow: hidden; 
}

.top{
  height: 40vh;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: flex-end;
  /* border: 1vh solid rgb(45, 33, 33); */
}

#img1{
  position: absolute;
  transform: translateX(-50%);
  bottom: 0;
  left: 50%;
  /* border: 1px solid rebeccapurple; */
  
}

#img1 img{
  animation: slideInFromTop2 1.5s ease-out;
}

#img2{
  position:absolute;
  top: 0;
  left: 0;
}

.hero .text{
  flex:1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.hero h1 {
  position: relative;
  animation: slideInFromTop 1.5s ease-out;
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #000000;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
  animation: emerge 0.7s 1.5s ease-in backwards;
  font-size: 1.5rem;
  color: #000000;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero a {
  animation: emerge 1.5s 1.5s ease-in backwards;
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
  color: #ffffff;
  background-color: #000000;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.hero a:hover {
  background-color: #333; 
}


@keyframes slideInFromTop {
  0% {transform:translateY(300%) ;opacity: 0;}
  50% { transform: translateY(-20%); opacity: 1; }
  100% { transform: translate(0); opacity: 1; } 
}

@keyframes emerge {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInFromTop2 {
  0% {transform:translateY(-100%);opacity: 0;}
  100% { transform: translate(0); opacity: 1;} 
}